package com.mapforge.map.tools.undo.tilelayeredit;

import com.mapforge.Constants;
import com.mapforge.map.TileLayer;

/**
 * 
 * @author Will Morrison
 *
 */
public class TileLayerNameEdit extends AbstractTileLayerEdit {
	/**
	 * 
	 */
	private String oldName;

	/**
	 * 
	 */
	private String newName;

	/**
	 * 
	 * @param layer
	 * @param oldName
	 * @param newName
	 */
	public TileLayerNameEdit(TileLayer layer, String oldName, String newName) {
		super(Constants.LAYER_EDITED, "Layer renamed", layer);
		this.oldName = oldName;
		this.newName = newName;
	}

	/**
	 * 
	 * @return
	 */
	public String getOldName() {
		return oldName;
	}

	/**
	 * 
	 * @return
	 */
	public String getNewName() {
		return newName;
	}

	/** */
	public void undo() {

	}

	/** */
	public void redo() {

	}

	@Override
	public void die() {
		
	}
}
